package com.liuceng.zen.web.auth;


/**
 * 用户和密码（包含验证码）令牌类
 * 
 * @author ryenlea
 */
public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {
  private static final long serialVersionUID = 1L;
  private String captcha;
  private String flag;
  private String system;
  private Integer adminId;
  private String luosimao;//人机验证
  private Boolean isWeChatLogin;//微信登录
  public static final String FLAG_NORMAL = "1";
  public static final String FLAG_AUTOLOGIN = "2";
  public static final String IS_SYSTEM = "true";
  public static final String NO_SYSTEM = "false";

  public String getCaptcha() {
    return captcha;
  }

  public void setCaptcha(String captcha) {
    this.captcha = captcha;
  }

  public UsernamePasswordToken() {
    super();
  }

  public UsernamePasswordToken(String username, char[] password, boolean rememberMe, String host,
      String captcha,String luosimao) {
        this(username, password, rememberMe, host, captcha, luosimao, FLAG_NORMAL, NO_SYSTEM, null,null);
  }

  public UsernamePasswordToken(String username, char[] password, boolean rememberMe, String host,
 String captcha, String luosimao, String flag, String system, Integer adminId,Boolean isWeChatLogin) {
    super(username, password, rememberMe, host);
    this.captcha = captcha;
    this.luosimao = luosimao;
    this.flag = flag;
    this.system = system;
    this.adminId = adminId;
    this.isWeChatLogin = isWeChatLogin;
  }

  public String getSystem() {
    return system;
  }

  public void setSystem(String system) {
    this.system = system;
  }

  public String getLuosimao() {
    return luosimao;
  }

  public void setLuosimao(String luosimao) {
    this.luosimao = luosimao;
  }

  public String getFlag() {
    return flag;
  }

  public void setFlag(String flag) {
    this.flag = flag;
  }

    public Integer getAdminId() {
        return this.adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

  public Boolean getIsWeChatLogin() {
    return isWeChatLogin;
  }

  public void setIsWeChatLogin(Boolean isWeChatLogin) {
    this.isWeChatLogin = isWeChatLogin;
  }

}
